
public abstract class NLinearUnion {
	@SuppressWarnings("unchecked")
	public static <T extends Comparable<T>> LinearList<T> uniteNLinearLists(LinearList<T>[] orList){
		
		if(orList==null){
			throw new NullPointerException();
		}
		if(orList.length==1){
			return orList[0];
		}
		
		int[] indexes=new int[orList.length];
		LinearList<T> ans=(LinearList<T>) new MyHeaderList<T>();
		int max=-1;
		T previous;
		T current;
		boolean done=false;
		
		while(!done){

			if(i=0){
				
			}
		
			for(int i=1;i<orList.length;i++){
				for(int j=1;j<orList.length;j++){			
					previous=get(orList[(i-1)<0? 0:i-1],indexes[(j-1)<0? 0:j-1]);
					current=get(orList[i],indexes[j]);
					if(previous.compareTo(current)==0){
					
				}
			}
			
		}
		
		
		return ans;
	}
	
	private static <T> T get(LinearList<T> list, int i){
		return null;
	}
	
}
